package lcy.homework03.first;

/**
 * @ClassName: LibraryTest
 * @Description: 测试类 LibraryTest
 * @author: 李春洋
 * @date: 2024/4/18 16:05
 * @Blog: https://
 */
public class LibraryTest {
    public static void main(String[] args) {
        Library library = new Library();

        // 添加几本书籍、音乐CD和电影DVD到图书馆
        library.addItem(new Book("Java 编程思想", "John Smith"));
        library.addItem(new Book("Python 基础", "Alice Johnson"));
        library.addItem(new MusicCD("爵士", "披头士乐队"));
        library.addItem(new MusicCD("流行", "泰勒·斯威夫特"));
        library.addItem(new MovieDVD("开端", "克里斯托弗·诺兰"));
        library.addItem(new MovieDVD("肖申克的救赎", "Frank Darabont"));

        // 显示图书馆中所有物品的信息 第二
        library.displayItems();
    }
}
